
#include "../include/ehome.h"

void update_kernel(void){
    char update[100]={0};
    sprintf(update,"%s %s %s\n","dd","if=/mnt/usb/uImage","of=/dev/mmcblk0p1");
    system(update);
    pr_debug("server:update_kernel:update successed!\n");
}

void update_server(void){
    char update[100]={0};
    strcpy(update,"cp /mnt/usb/server /home/bin/");
    system(update);
}

void update_client(void){
    char update[100]={0};
    strcpy(update,"cp /mnt/usb/myclient /home/bin/");
    system(update);
}

